package com.zretc.util;

import java.util.Map;

/**
 * @author 周文涛
 * 2020年8月20日19:06:00
 * 分页map判断
 */
public class PageMapUtil {

    public static Integer pageSize(Map<String,String> map){
        String size = map.get("pageSize");
        if(size == null || "".equals(size)){
            size = "10";
        }
        Integer pageSize = Integer.valueOf(size);
        return pageSize;
    }

    public static Integer pageNumber(Map<String,String> map){
        String number = map.get("pageNumber");
        if(number == null || "".equals(number)){
            number = "1";
        }
        Integer pageNumber = Integer.valueOf(number);
        return pageNumber;
    }

}
